<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html" 
	xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:p="http://primefaces.org/ui">

<body>
<ui:composition template="../templates/template.xhtml">

    <ui:define name="titre">Inscription</ui:define>
    <ui:define name="zone1">
    	<div class="form">
			<h:panelGroup layout="block">
				<h:form>
					<h:messages id="messages" styleClass="borderBleu msgGenerique" globalOnly="true" warnClass="msgWarn" errorClass="msgError" infoClass="msgInfo" />
					<h:panelGrid columns="2" columnClasses="tabline1, tabline2" styleClass="spanelTable">
						<h:panelGroup>
							<h:outputLabel value="Nom" for="nomTxt" id="nomLabel" styleClass="label" />
						</h:panelGroup>
						<h:panelGroup>
							<h:inputText value="#{GestionInscriptionControleur.modele.eleve.nom}" id="nomTxt" 
							required="true" requiredMessage="Requis"/>
							<h:message id="msgnomTxt" for="nomTxt"
								styleClass="msgContextuel" warnClass="msgWarn"
								errorClass="msgError" infoClass="msgInfo" />
						</h:panelGroup>
						<h:panelGroup>
							<h:outputLabel value="Prénom" for="prenomTxt" id="prenomLabel" styleClass="label" />
						</h:panelGroup>
						<h:panelGroup>
							<h:inputText value="#{GestionInscriptionControleur.modele.eleve.prenom}" id="prenomTxt" 
							required="true" requiredMessage="Requis"/>
							<h:message id="msgprenomTxt" for="prenomTxt"
								styleClass="msgContextuel" warnClass="msgWarn"
								errorClass="msgError" infoClass="msgInfo" />
						</h:panelGroup>
						<h:panelGroup>
							<h:outputLabel value="Années scolaire" for="anneescolaire" id="anneescolaireLabel" styleClass="label"/>
						</h:panelGroup>
						<h:panelGroup>
							<h:selectOneMenu id="anneescolaire"  value="#{GestionInscriptionControleur.modele.idAnneeScolaire}" required="true" requiredMessage="Requis">
						        	<f:selectItem  itemLabel="--Années scolaires--" itemValue="" />
						        	<f:selectItems  value="#{GestionInscriptionControleur.modele.annesScolairesItems}"/>
						    </h:selectOneMenu>
						    <h:message id="msganneescolaire" for="anneescolaire"
								styleClass="msgContextuel" warnClass="msgWarn"
								errorClass="msgError" infoClass="msgInfo" />
					    </h:panelGroup>
					    <h:panelGroup>
					    	<h:outputLabel value="Classe" for="classe" id="classelbl" styleClass="label"/>
						</h:panelGroup>
						<h:panelGroup>
							<h:selectOneMenu id="classe"  value="#{GestionInscriptionControleur.modele.idClasse}" required="true" requiredMessage="Requis">
						        	<f:selectItem  itemLabel="" itemValue="" />
						        	<f:selectItems  value="#{GestionInscriptionControleur.modele.classesItems}"/>
						    </h:selectOneMenu>
						     <h:message id="msgclasse" for="classe"
								styleClass="msgContextuel" warnClass="msgWarn"
								errorClass="msgError" infoClass="msgInfo" />
					    </h:panelGroup>
					    <h:panelGroup>
					    	<h:outputLabel value="Transport" for="transport" id="transportLabel" styleClass="label"/>
						</h:panelGroup>
						<h:panelGroup>
							<h:selectOneMenu id="transport"  value="#{GestionInscriptionControleur.modele.transport}" required="true" requiredMessage="Requis">
						        <f:selectItem  itemLabel="" itemValue="" />
						        <f:selectItem itemLabel="Oui" itemValue="oui"/>
								<f:selectItem itemLabel="Non"  itemValue="non"/>
						    </h:selectOneMenu>
						     <h:message id="msgtransport" for="transport"
								styleClass="msgContextuel" warnClass="msgWarn"
								errorClass="msgError" infoClass="msgInfo" />
					    </h:panelGroup>
					    <h:panelGroup>
					    	<h:outputLabel value="Garderie" for="garderie" id="garderieLabel" styleClass="label"/>
						</h:panelGroup>
						<h:panelGroup>
							<h:selectOneMenu id="garderie"  value="#{GestionInscriptionControleur.modele.garderie}" required="true" requiredMessage="Requis">
						        <f:selectItem  itemLabel="" itemValue="" />
						        <f:selectItem itemLabel="Oui" itemValue="oui"/>
								<f:selectItem itemLabel="Non"  itemValue="non"/>
						    </h:selectOneMenu>
						     <h:message id="msggarderie" for="garderie"
								styleClass="msgContextuel" warnClass="msgWarn"
								errorClass="msgError" infoClass="msgInfo" />
						 </h:panelGroup>
					</h:panelGrid>
			
					<h:panelGroup >
					  <h:commandLink  value="Valider" styleClass="btValider" 
						action="#{GestionInscriptionControleur.validerInscription}" >
					  </h:commandLink>
					</h:panelGroup>
				</h:form>
			</h:panelGroup>
		</div>
		

       
    </ui:define>
</ui:composition>
</body>
</html>